import React, { Component } from 'react'
import { Button } from 'antd';
import { seetingHandle } from '../../actions/setting'
import { connect } from 'react-redux'
import { Redirect } from 'react-router-dom'
@connect(null, { seetingHandle })
export default class Settings extends Component {
    handleSeeting = () => {
        const data = {
            id: 1,
            name: 'zs'
        };
        this.props.seetingHandle()
    }
    render() {
        return (
            <div>
                <Button type="primary" onClick={this.handleSeeting}>点击测试</Button>
            </div>
        )
    }
}
